<?php
namespace App\Event;

use App\Query\ConfigQuery;

class Event
{
    public $config;
    
    // 获取配置
    public function config($name)
    {
        if(!$this->config)
        {
            $this->config = ConfigQuery::get();
        }
        
        return $this->config[$name];
    }
}